using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI;
using Sedna.Domain;

namespace Sedna.Core.Controller.Configurations
{
    public class CurrencyDataParser: BaseDataTranslator, IDataTranslator
    {
        public override object UnsafeTranslate(Control control, object value, Type targetType)
        {
            return MonetaryAmount.CreateFromValue((decimal) value);
        }
    }
}
